package cn.iocoder.yudao.module.form.service.impl;

import cn.iocoder.yudao.module.form.dataobject.DatabaseDomain;
import cn.iocoder.yudao.module.form.mysql.DatabaseDomainMapper;
import cn.iocoder.yudao.module.form.service.IDatabaseDomainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DatabaseDomainServiceImpl implements IDatabaseDomainService {
    @Autowired
    private DatabaseDomainMapper databaseDomainMapper;

    @Override
    public List<DatabaseDomain> getDataDoList() {
        return databaseDomainMapper.selectList();
    }

    @Override
    public String getDoByData(String databaseName) {
        return databaseDomainMapper.getDomain(databaseName);
    }
}
